﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace SelfMadeMillionaire.Web
{
	public class RouteConfig
	{
		public static void RegisterRoutes(RouteCollection routes)
		{
			routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
			routes.IgnoreRoute("favicon.ico");

            routes.MapRoute(
                name: "Subscribe",
                url: "Subscribe/",
                defaults: new { controller = "MailingList", action = "Subscribe" },
                namespaces: new[] { "SelfMadeMillionaire.Web.Infrastructure.Controllers" }
                );

            routes.MapRoute(
                name: "smmpromo",
                url: "smmpromo/",
                defaults: new { controller = "Home", action = "SmmPromo" },
                namespaces: new[] { "SelfMadeMillionaire.Web.Infrastructure.Controllers" }
                );

            routes.MapRoute(
                name: "Webinar",
                url: "Webinar/",
                defaults: new { controller = "Home", action = "Webinar" },
                namespaces: new[] { "SelfMadeMillionaire.Web.Infrastructure.Controllers" }
                );

            routes.MapRoute(
                name: "MarketingLetter",
                url: "MarketingLetter/",
                defaults: new { controller = "Home", action = "MarketingLetter" },
                namespaces: new[] { "SelfMadeMillionaire.Web.Infrastructure.Controllers" }
                );

            routes.MapRoute(
                name: "WebinarConfirmation",
                url: "WebinarConfirmation/",
                defaults: new { controller = "Home", action = "WebinarConfirmation" },
                namespaces: new[] { "SelfMadeMillionaire.Web.Infrastructure.Controllers" }
                );

			routes.MapRoute(
				name: "Default",
				url: "{controller}/{action}/{id}",
				defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional },
				namespaces: new[] { "SelfMadeMillionaire.Web.Infrastructure.Controllers" }
			);

			
		}
	}
}